<!-- 设备型号下拉框组件 -->

<template>
    <el-select v-model="searchForm[data['prop']]" :placeholder="data['placeholder']" clearable style="width: 180px">
        <el-option v-for="item in data.options" :key="item.value" :label="item.modelName" :value="`${item.id}_${item.modelName}`"></el-option>
    </el-select>
</template>

<script setup>

const props = defineProps({
    data: {
        type: Object,
        default: () => {}
    }
});

const searchForm = defineModel('searchForm');
</script>

<style lang="scss" scoped>

</style>